package com.rzjm.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;
import java.util.Date;


/**
 * 传感设备表
 *
 * @author mr.zhou
 * @email zhouwei_nice@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@TableName("edge_record")
public class EdgeRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(value = "id",type = IdType.AUTO)
	private Integer id;
	private Integer shopId;
	private Long recordId; //记录id， 为了保证数据和视频的唯一，特别加的标识
	private String deviceNum;
	private String deviceName; //设备名称
	private String pushName; //推送事件名称
	private String cameraName; //摄像头名称
	private Long timeStamp; //事件告警时间
	private Integer cameraId; //摄像头id；
	private Long algorithmType; //算法类型
	private String algorithmName; //算法类型
	private String discernArea; //检测区域
	private Integer warningTime; //警告时间
	private Integer discernNum; //检测人数
	private Integer discernNumResult; //检测人数结果
	private String discernResult; // 检测结果
	private Double trustValue; //置信度
	private Double trustValueResult; //事件置信结果
	private String deviceIp; //设备ip
	private String picUrl;//告警图片
	private int showFlag;
	@TableField(exist = false)
	private String picUrlBase64; //base64告警图片
	private String videoUrl;//视频地址
	private Integer videoGenerateFlag;//视频生成状态(0未生成；1生成中；2生成失败)

	/**
	 *
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;


}
